#include <iostream>
#include <cstring>
using namespace std;
/**
 * [getName description]
 * @Author   Huangj
 * @DateTime 2016-12-29T22:26:04+0800
 * @return                            [description]
 */
char * getName(void);
int main(int argc, char const *argv[])
{
	/* code */
	/**
	 * 第一次测试
	 */
	char * name;
	name = getName();
	cout << name <<"   at   :" <<(int *)name <<endl;
	delete []name;
	/**
	 * 第二次测试
	 */
	
	name = getName();
	cout << name <<" at :" <<(int *)name <<endl;
	delete []name;
	return 0;
}
char * getName(){
	char temp[80];
	cout << "last name :";
	cin >>temp;
	char * pn = new char[strlen(temp) + 1];
	strcpy(pn,temp);
	return pn;
}